using System;
using System.Collections.Generic;

namespace Mindless
{
    /// <summary>
    /// A hand is a pile of cards.
    /// </summary>
    public class Hand : Pile
    {
        /// <summary>
        /// Creates a hand that contains the given cards.
        /// </summary>
        public Hand(ICollection<Card> cards) : base(cards)
        {
        }

        /// <summary>
        /// Creates a hand that contains the same cards as the given hand.
        /// </summary>
        public Hand(Hand hand) : base(hand)
        {
        }

        /// <summary>
        /// Creates a new hand from the cards identified by the given string.
        /// </summary>
        public new static Hand Parse(string s)
        {
            return new Hand(ParseRaw(s));
        }
    }
}